package cn.waqwb.controller;

import cn.waqwb.pojo.Users;
import cn.waqwb.service.UserService;
import cn.waqwb.service.impl.UserServiceImpl;

/**
 * @Classname UserController
 * @Description TODO
 * @Date 2022/9/6 20:41
 * @Created by Administrator
 */
public class UserController {
    //切记：所有的界面层都会有业务逻辑层的对象
//    private UserService userService = new UserServiceImpl();
    private UserService userService ;

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    //界面层的功能实现，对外提供访问的功能
    public int insert(Users users){
        return userService.insert(users);
    }
}
